package com.chunxiadong.service;

import com.chunxiadong.entity.Type;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @auther QiuShangcheng
 * @create 2021/6/6
 */
public interface TypeService {
    int addType(Type type);

    Type getType(Integer id);

    int updateType(Type type);

    int deleteType(Integer id);

    List<Type> getAllType();

    PageInfo<Type> getAllTypeByPage(Integer page, Integer rows);
}
